//
//  MCDefines.h
//  HMmall
//
//  Created by 李李善 on 16/6/25.
//  Copyright © 2016年 吉青. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#ifndef _MCDefines_h
#define _MCDefines_h
// 无参数点击回调
typedef void(^CClickReturnNoParamsBlock)(void);
// 点击位置回调 （点击的索引）
typedef void(^CClickReturnIndexBlock)(NSInteger index);
// 点击回调标题
typedef void(^CClickReturnStringBlock)(NSString *string);
//成功回调
typedef void (^successBlock)(id data);
typedef void (^successListBlock)(id data,NSInteger pageNum);
//准备上传
typedef void (^readyBlock)(void);
//失败回调
typedef void (^failedBlock)(NSString *error);
//错误回调
typedef void (^errorBlock)(id error);
//位置/大小／中心
typedef void(^layoutBlock)(UIView *view,CGPoint origin,CGSize size,CGPoint center);
//约束
typedef void(^constraintBlock)(void);
//更新数据
typedef void(^loadAnimatedBlock)(void);

typedef void (^TextBlcok)(NSString *title ,id supCell ,id subView ,NSIndexPath *indexPath, id model);

typedef void (^ButtonBlcok)(id supCell ,id subView ,NSIndexPath *indexPath, id model);

//0 内网
//1 外网
//2 测试

/**
 appstore打包前注意：
 1，将build版本末尾号加1，
 2，检查infoPlist的CFBundleDisplayName是否为“项目的名称”，
 3，检查bundleId是否为“com.xxxxxxx”
 4，注释#define NSLog(...)
 5，设置蒲公英链接
 */

/************************
 SETTING--->setting(设置)
 *************************/


#ifndef BaseClass
#define BaseClass 1
#endif

#undef BaseClass
#define BaseClass 0




#ifndef SETTING
#define SETTING 1
#endif

#undef SETTING
#define SETTING 1

#if SETTING == 0
//内网
static NSString *host =@"http://192.168.1.144/xinxun/app/";//域名
static NSString *imageHost= @"http://192.168.1.144:8080/";//图片域名
static NSString *host3= @"http://192.168.1.228:8080/xinxun/app/";//图片域名
#define NSLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)

#elif SETTING == 1
//阿里云
static NSString *host =@"http://119.23.254.93/";//域名
static NSString *imageHost= @"http://119.23.254.93/";//图片域名
//#define NSLog(...)
#elif SETTING == 2
//#else

//外网，正式上线的地址
//#define NSLog(...)
static NSString *host =@"http://localhost/zhengmian";//域名
static NSString *imageHost= @"http://119.23.254.93/zhengmian/";//图片域名
#endif


//环信App_key
static NSString *const KHuanXingKey  = @"1102171129115883#aojun-quke-app";
//微信Scheme
static NSString *const KWxpayScheme  = @"wxbcc1175e6a7b0298";



//极光App_key
static NSString *const KJGKey  =@"4074b75ec928d6ee0f4606d1";

// 图片地址默认域名（又拍云）
static NSString *yunHost =@"http://jiangzhe.test.upcdn.net/";
//高德App_key
static NSString *const KGaoDe_key    = @"a2fbe071a77931d192d8b6e8dce24e42";
//签名-
static NSString *const KSign_key    = @"c35309097dff";
static NSString *const Ksign_sec    = @"d3c2c437b4a64f7fa12f049b48961ca0";
//AES128 aes_key aes_iv
static NSString *const KAes_key    = @"quke201712010000";
static NSString *const KAes_iv     = @"0000000000000000";




//时间戳
static NSString *const KInterval    = @"interval";
//登陆
static NSString *const KUsername     = @"username";
static NSString *const KPassword     = @"password";
static NSString *const kCode         = @"ret";
static NSString *const kErrorCode    = @"errorCode";
static NSString *const kMessage      = @"message";

static NSString *const kResult       = @"list";
static NSString *const kStatus       = @"status";
static NSString *const kData         = @"data";
static NSString *const kInfo         = @"info";
static NSString *const kLoginId      = @"loginId";
static NSString *const kPassword     = @"password";
static NSString *const kOldPassword  = @"oldPassword";
static NSString *const kSmsCode      = @"smsCode";
static NSString *const kToken        = @"token";
static NSString *const kPageNo       = @"page";
static NSString *const kPageSize     = @"pageSize";
static NSString *const kUserId       = @"user_id";




/** < 单元格名称 > */
static NSString *const cell          = @"cell";
static NSString *const cell0         = @"cell0";
static NSString *const cell1         = @"cell1";
static NSString *const cell2         = @"cell2";
static NSString *const cell3         = @"cell3";
static NSString *const cell4         = @"cell4";
static NSString *const cell5         = @"cell5";
static NSString *const cell6         = @"cell6";
static NSString *const cell7         = @"cell7";
static NSString *const cell8         = @"cell8";
static NSString *const cell9         = @"cell9";
static NSString *const cell10        = @"cell10";
static NSString *const cell11         = @"cell11";
static NSString *const cell12         = @"cell12";
static NSString *const cell13         = @"cell13";
static NSString *const cell14         = @"cell14";
static NSString *const cell15        = @"cell15";

/** < 区头名称 > */
static NSString *const header          = @"header";
static NSString *const header0         = @"header0";
static NSString *const header1         = @"header1";
static NSString *const header2         = @"header2";
static NSString *const header3         = @"header3";
static NSString *const header4         = @"header4";

/** < 区尾名称 > */
static NSString *const foodter          = @"foodter";
static NSString *const foodter0         = @"foodter0";
static NSString *const foodter1         = @"foodter1";
static NSString *const foodter2         = @"foodter2";
static NSString *const foodter3         = @"foodter3";
static NSString *const foodter4         = @"foodter4";



/** < 通知名称 > */
//任务类型
static NSString *const noteTaskOne  = @"noteTaskOne";


#endif

